home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
excell1a
/
form4.frm
< prev
next >
Wrap
Text File
|
1999-10-08
|
6KB
|
245 lines
VERSION 5.00
Begin VB.Form Form4
AutoRedraw = -1 'True
BackColor = &H00FF0000&
BorderStyle = 1 'Fixed Single
ClientHeight = 10065
ClientLeft = 15
ClientTop = 15
ClientWidth = 13080
ControlBox = 0 'False
LinkTopic = "Form4"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 10065
ScaleWidth = 13080
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.Timer Timer2
Interval = 20
Left = 6000
Top = 4800
End
Begin VB.Timer Timer1
Interval = 5
Left = 3600
Top = 3360
End
Begin VB.Image imgPic
Height = 2895
Left = 3840
Picture = "Form4.frx":0000
Stretch = -1 'True
Top = 5280
Width = 2910
End
Begin VB.Image imgBalloon
Height = 2310
Left = -3040
Picture = "Form4.frx":14C2
Stretch = -1 'True
Top = 240
Width = 2115
End
Begin VB.Label Label3
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Click here to begin"
BeginProperty Font
Name = "Verdana"
Size = 12
Charset = 0
Weight = 700
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Left = 2640
MouseIcon = "Form4.frx":5544
MousePointer = 99 'Custom
TabIndex = 2
Top = 3840
Width = 2415
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "HangMan"
BeginProperty Font
Name = "Comic Sans MS"
Size = 48
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 1350
Left = 1800
TabIndex = 1
Top = 2280
Width = 4200
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TonysComp Presents"
BeginProperty Font
Name = "Garamond"
Size = 15.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 360
Left = 2520
TabIndex = 0
Top = 2160
Width = 2880
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
Form1.Show
Form4.Enabled = False
End Sub
Private Sub Form_Load()
Form1.Show
Form4.WindowState = 2
Label1.Left = (Screen.Width / 2) - (Label1.Width / 2)
Label1.Top = (Screen.Height / 2) - (Label1.Height / 2) - (Label2.Height / 2) - 1000
Label2.Left = (Screen.Width / 2) - (Label2.Width / 2)
Label2.Top = (Screen.Height / 2) - (Label2.Height / 2) - 1000
Label3.Left = (Screen.Width / 2) - (Label3.Width / 2)
Label3.Top = (Screen.Height / 2) - (Label3.Height / 2) + (Label2.Height) - 1000
imgPic.Left = (Screen.Width / 2) + 1000
imgPic.Top = (Screen.Height / 2) + 500
Form4.WindowState = 2
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
Label3.ForeColor = vbWhite
End Sub
Private Sub Image1_Click()
End Sub
Private Sub Label2_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
Label3.ForeColor = vbWhite
End Sub
Private Sub Label3_Click()
Form1.Show
Form1.Height = 0
Timer1.Enabled = True
Form4.Enabled = False
End Sub
Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
Label3.ForeColor = vbGreen
End Sub
Private Sub Timer1_Timer()
Form1.Height = Form1.Height + 105
If Form1.Height >= 6870 Then
Timer1.Enabled = False
Exit Sub
End If
End Sub
Private Sub Timer2_Timer()
Static Timed
If Timed = 0 Then
Dim SW, SH
Dim LineNum
SW = Screen.Width
SH = Screen.Height
LineNum = 0
Dim b
Do While SH > LineNum
Form4.Line (0, LineNum)-(SW, LineNum), RGB(100, 0, b)
LineNum = LineNum + (SH / 1000)
Form4.Line (0, LineNum)-(SW, LineNum), RGB(100, 0, b)
LineNum = LineNum + (SH / 1000)
Form4.Line (0, LineNum)-(SW, LineNum), RGB(100, 0, b)
LineNum = LineNum + (SH / 1000)
Form4.Line (0, LineNum)-(SW, LineNum), RGB(100, 0, b)
LineNum = LineNum + (SH / 1000)
b = b + 1
Loop
Static timed2
End If
If Timed > 1000 Then
If timed2 = 0 Then
timed2 = -3000
End If
imgBalloon.Left = timed2
timed2 = timed2 + 91
End If
If timed2 = 500000 Then
timed2 = 0
End If
Timed = Timed + 1
End Sub